<?php
	/*
	*	list games
	*/

	$this->load->helper('url');
	$viewGameUrl = site_url('games/viewGame');
?>

<div id="games">
	
	<ul id="games-list">
	<?
	foreach($gamesList as $game):
	?>
	<li>
		<div class="image">	
			<img src="<?=base_url()?>public/imgs/product/<?=$game['image_src']?>" alt="<?=$game['name']?>"  />
		</div>
		<div class="title">
			<a href="<?= $viewGameUrl."/".$game['id']; ?>"><?= $game['name']; ?></a>			
		</div>
	</li>
	<? 	
	endforeach; ?>
	</ul>
</div>

<div>
	<?= isset($pageLinks)? $pageLinks: ''; ?>
</div>